#ifndef _window_h_
#define _window_h_

#include "theme.h"
#include "rect.h"
#include <iostream>

using namespace std;

class Window : public Rect{
    private:
        Theme mTheme;
        bool mFocus;
    public:
        Window();
        Window(int,int,int,int);
        Window(int,int,int,int,Theme);
        ~Window();
        virtual void draw();
        void addChild(Window*);
        void addBrother(Window*);
        
        bool checkFocus(Point);
        bool isFocused();
        
        virtual void onFocus();
        virtual void onDraw();
        virtual void onCreate();
        
        Window *mChild;
        Window *mBrother; 
};

#endif     
